package com.ling.sbbyyds.entity.news;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 发送的消息
 */
@Data
@Table(name = "sbb_news_message")
public class Message {

    @ApiModelProperty("进行发送的用户id")
    private Long sendUserId;

    @ApiModelProperty("要发送给的用户id")
    private Long toUserId;

    @ApiModelProperty("发送内容")
    private String message;

    @ApiModelProperty("发送时间")
    private Date sendTime;

    @Transient
    @ApiModelProperty("发送时间")
    private Date releaseTime;

    @Transient
    @ApiModelProperty("头像")
    private String headImage;

    @Transient
    @ApiModelProperty("用户名")
    private String userName;

}
